<script type="text/javascript" src="{$smarty.const.ADMIN_URL}/{$module.incl_dir}js/ajax.js"></script>
<form method="post" action="">
{if $do == 'edit'}<span class="left">Редактировать пользователя &quot;{$item.title}&quot;</span>
{elseif $do == 'add'}<span class="left">Добавить пользователя</span>
<input id="item_status" type="hidden" name="item[status]" value="{$item.status}" />
<span class="item_status ui-icon ui-icon-locked left{if $item.status == '0'} selectedAction{/if}" id="item_status_0" title="блокировка"></span>
<span class="item_status ui-icon ui-icon-key left{if $item.status == '1'} selectedAction{/if}" id="item_status_1" title="модерация"></span>
<span class="item_status ui-icon ui-icon-unlocked left{if $item.status == '2'} selectedAction{/if}" id="item_status_2" title="свободный доступ"></span>
{/if}
<br class="clear" />
<input type="hidden" name="do" value="{$do}" />
<input type="hidden" name="item[user_id]" value="{$item.user_id}" />
<label for="item_group_id">Группа пользователя</label><br />
<select id="item_group_id" name="item[group_id]">
{foreach from=$item_settings.groups key=g item=group}
	<option value="{$group.id}"{if $item.group_id == $group.id} selected="selected"{/if}>{$group.title}</option>
{/foreach}
</select>
<div class="left w25">
	<label for="item_name">Имя</label><br class="clear" />
	<input type="text" value="{$item.name}" name="item[name]" id="item_name" />
</div>
<div class="left w25">
	<label for="item_lname">Фамилия</label><br class="clear" />
	<input type="text" value="{$item.lname}" name="item[lname]" id="item_lname" />
</div>
<div class="left w25">
	<label for="item_sname">Отчество</label><br class="clear" />
	<input type="text" value="{$item.sname}" name="item[sname]" id="item_sname" />
</div>
<div class="left w25">
	<label for="item_nickname">Никнейм</label><br class="clear" />
	<input type="text" value="{$item.nickname}" name="item[nickname]" id="item_nickname" />
</div>
<br class="clear" />
<label for="item_birthdate_show">День рождения</label><br class="clear" />
<input type="hidden" id="item_birthdate" name="item[birthdate]" value="{$item.birthdate}" />
<input id="item_birthdate_show" type="text" value="{$item.birthdate|date_format:"%d %B %Y года"}"/><br />
<input type="submit" value="{if $do=='edit'}Редактировать{elseif $do=='add'}Добавить{/if}" name="submit" id="submit" />
</form>